package com.chagee.store.operation.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * 申诉类型
 * @Author : hk
 * @Date : 2025/3/18
 */

@Getter
@AllArgsConstructor
public enum OrderAppealTypeEnum {

	// 申诉过
	APPEAL("APPEAL", "是"),

	// 未申诉
	NO_APPEAL("NO_APPEAL", "否"),

	;

	private final String type;
	private final String desc;

	public static OrderAppealTypeEnum getByType(String type) {
		for (OrderAppealTypeEnum value : values()) {
			if (Objects.equals(value.getType(), type)) {
				return value;
			}
		}
		return null;
	}


}
